package file;

import java.io.*;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: fzykd
 * Date: 2022-10-29
 * Time: 19:41
 */

//按照字符流写文件
public class Demo4 {
    public static void main(String[] args) {
        try(Writer writer = new FileWriter("e:/text.txt")){
            writer.write("hello");
        }catch (IOException e){
            e.printStackTrace();
        }
    }
}
